package com.zhuojy.equity.mall.admin.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhuojy.equity.mall.admin.common.entity.AddressBook2;
import com.zhuojy.equity.mall.admin.common.entity.Document;
import com.zhuojy.equity.mall.admin.common.entity.Notice;
import com.zhuojy.equity.mall.admin.common.entity.Notice2;
import com.zhuojy.equity.mall.admin.dal.mapper.NoriceMapper2;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

@Slf4j
@Service
@RequiredArgsConstructor
public class NoticeService2 extends ServiceImpl<NoriceMapper2,Notice2> {

    //分页查询
    public IPage queryNotice2(Notice2 notice2) {
        IPage page = new Page<>(notice2.getCurrentPage(), notice2.getPageSize());
       page =page(page,null);
        return page;
    }
}
